/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						 chain_lightning.h

	$Header: /heroes4/chain_lightning.h $

	$NoKeywords: $

 ************************************************************************/

#if !defined( CHAIN_LIGHTNING_H_INCLUDED )
#define CHAIN_LIGHTNING_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "combat_spell_single_target.h"

// ----------------------------------------------------------------
// handler for chain lightning
// ----------------------------------------------------------------
class t_chain_lightning : public t_combat_spell_single_target
{
public:
	t_chain_lightning( t_battlefield& battlefield, t_spell spell );

	virtual double  ai_weight( t_combat_creature const& target) const;
	virtual bool	cast_on( t_combat_creature_ptr caster, 
		                     t_combat_creature_ptr target, 
							 int power, 
							 bool is_mirror  );
	virtual double	get_cancel_weight( t_combat_creature const& target ) const;
};

#endif // CHAIN_LIGHTNING_H_INCLUDED
